import { Toast } from 'antd-mobile';
// import VConsole from '@/common/vconsole.min.js';

console.info('当前app环境---->', UMI_ENV);

if (window.VConsole) {
  new window.VConsole();
}

// Toast mask
Toast.config({
  mask: true,
  duration: 1.5,
});

export function onRouteChange() {
  console.log('onRouteChange');
}

export const request = {
  timeout: 1000,
  errorConfig: {},
  middlewares: [],
  requestInterceptors: [],
  responseInterceptors: [],
};
